<?php
/**
 * @file index.php(首页文件)
 * @package inews-v2
 */
?>
<?php get_header(); ?>
<div id="page" class="clearfloat"><div id="center">

<div class="col"><div id="newest" class="fr"><h2><?php bloginfo('name'); ?>最新小说推荐</h2><ul>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" target="_blank"><?php the_title(); ?></a>&nbsp;&nbsp;(<?php the_time('m-d') ?>)</li>
<?php endwhile; ?></ul></div><?php include (TEMPLATEPATH . '/slider.php'); ?>
</div><!-- .col -->

<div class="col"><div class="col1">
<?php $category = 4; ?><div class="catlist"><?php query_posts("showposts=7&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3>
<ul><?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br />&nbsp;&nbsp;&nbsp;此分类暂无内容<?php endif; ?></ul></div>
</div><!-- .col1 left 武侠┇玄幻 -->
<div class="col2">
<?php $category = 5; ?><div class="catlist"><?php query_posts("showposts=7&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3>
<ul><?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br />&nbsp;&nbsp;&nbsp;此分类暂无内容<?php endif; ?></ul></div>
</div><!-- .col2 right 青春┇言情 -->
</div><!-- .col -->

<div class="col"><div class="col1">
<div class="banner"><?php include (TEMPLATEPATH . '/ads300x60x1.php'); ?></div>
<?php $category = 6; ?><div class="catlist"><?php query_posts("showposts=7&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3>
<ul><?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br />&nbsp;&nbsp;&nbsp;此分类暂无内容<?php endif; ?></ul></div>
</div><!-- .col1 left 科幻┇恐怖 -->
<div class="col2">
<div class="banner"><?php include (TEMPLATEPATH . '/ads300x60x2.php'); ?></div>
<?php $category = 3; ?><div class="catlist"><?php query_posts("showposts=7&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3>
<ul><?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br />&nbsp;&nbsp;&nbsp;此分类暂无内容<?php endif; ?></ul></div>
</div><!-- .col2 right 耽美┇同人 -->
</div><!-- .col -->

<div class="col"><div class="col1">
<div class="banner"><?php include (TEMPLATEPATH . '/ads300x60x3.php'); ?></div>
<?php $category = 8; ?><div class="catlist"><?php query_posts("showposts=7&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3>
<ul><?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br />&nbsp;&nbsp;&nbsp;此分类暂无内容<?php endif; ?></ul></div>
</div><!-- .col1 left 军事┇历史 -->
<div class="col2">
<div class="banner"><?php include (TEMPLATEPATH . '/ads300x60x4.php'); ?></div>
<?php $category = 7; ?><div class="catlist"><?php query_posts("showposts=7&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3>
<ul><?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br />&nbsp;&nbsp;&nbsp;此分类暂无内容<?php endif; ?></ul></div>
</div><!-- .col2 right 现代┇文学 -->
</div><!-- #col -->

<div class="col">
<div class="col1">
<?php $category = 1; ?><div class="catlist"><?php query_posts("showposts=7&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?>
<h3><a href="<?php echo get_category_link($category);?>" target="_blank"><?php single_cat_title(); ?></a><span><a href="<?php echo get_category_link($category);?>" target="_blank">更多>></a></span></h3>
<ul><?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></li>
<?php endwhile; ?><?php else : ?><br />&nbsp;&nbsp;&nbsp;此分类暂无内容<?php endif; ?></ul></div>
</div><!-- .col left 学习┇其他 -->
<div class="col2">
<div class="banner"><?php include (TEMPLATEPATH . '/ads300x60x4.php'); ?></div>
</div><!-- .col2 right ads-->
</div><!-- .col -->

</div><!-- #center -->
<div id="left"><?php include (TEMPLATEPATH . '/sidebar1.php'); ?></div><!-- #left -->
<div id="right"><?php include (TEMPLATEPATH . '/sidebar2.php'); ?></div><!-- #right -->
</div><!-- #page --><?php get_footer(); ?>